package com.young.coupon.customer.dao;

import com.young.coupon.customer.dao.entity.Coupon;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @description：
 * @author: yangyahui01
 * @date: 12/17/24 4:48 PM
 */
public interface CouponDao extends JpaRepository<Coupon, Long> {

    long countByUserIdAndTemplateId(Long userId, Long templateId);

}
